<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['report.member.menu']}">
	<h:panelGrid>
		<h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText>
	</h:panelGrid>
	
	<h:panelGrid width="100%">
	    <h:outputText value="#{messages['agreement.list.by.status.rpt.label']}" styleClass="sub_header" />
	</h:panelGrid>
	
	<h:panelGrid width="100%" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80">
		<h:outputText></h:outputText>
		<t:message for="agtFromDate" styleClass="error"></t:message>
		<h:panelGroup>
			<h:outputLabel for="agtFromDate" value="#{messages['agreement.date']} #{messages['from']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
		    <t:inputCalendar
		    	id="agtFromDate"
					monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
					currentDayCellClass="currentDayCell" value="#{agtListByStatusBean.searchBean.startDate}"
					renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
					popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
					renderPopupButtonAsImage="true"
					styleClass="standardText" required="false" 
				>
			</t:inputCalendar>
		</h:panelGroup>
		
		<h:outputText></h:outputText>
		<t:message for="agtToDate" styleClass="error"></t:message>
		<h:panelGroup>
			<h:outputLabel for="agtFromDate" value="#{messages['agreement.date']} #{messages['to']}" styleClass="standardText_Label" />
		</h:panelGroup>
		<h:panelGroup>
		    <t:inputCalendar
		    	id="agtToDate"
					monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
					currentDayCellClass="currentDayCell" value="#{agtListByStatusBean.searchBean.endDate}"
					renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
					popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
					renderPopupButtonAsImage="true"
					styleClass="standardText" required="false" 
				>
			</t:inputCalendar>
		</h:panelGroup>
		
		<h:outputText></h:outputText>
		<t:panelGrid columns="2">
			<h:commandButton value="#{messages['generate']}" styleClass="button" action="null" actionListener="#{agtListByStatusBean.searchActionEvent}"></h:commandButton>
			<h:commandButton value="#{messages['back']}" styleClass="button" action="#{reportMenuBean.navMemberReportAction}" immediate="true"></h:commandButton>
		</t:panelGrid>
			
	</h:panelGrid>
</rich:panel>
